import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
import './index.css'
class Footer extends Component {
    /*constructor(props){
        super(props)
        this.state={
            name:'jack'
        }
        备注：点击当前链接会报错，用replace属性可以解决，但是replace属性会导致无法使用后退功能 replace
    }*/
    render() {
        return (
            <footer>
                <NavLink exact to="/" activeClassName="selected">index</NavLink>
                <NavLink exact to="/detail" activeClassName="selected">detail</NavLink>
            </footer>
        )
    }
}
export default Footer;